package cn.dnf.feignClient;

import cn.dnf.domain.Product;
import cn.dnf.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "store-server")
@RequestMapping("/store")
public interface StoreFeignClient {
    @PostMapping("/add")
    JsonResult add(@RequestBody Product product);


}
